import http from "@/utils/http2.js";
/**
 * 查询所有产品
 * @param {*} type
 * @returns
 */
export function queryAll() {
  return http.get("/v1/product/all");
}
export function saveclassify (data) {
  return http.post("/v1/product/classify/save", data);
}
export function queryclassify (data) {
  return http.post("/v1/product/classify/query", data);
}
export function deleteclassify (id) {
  return http.delete("/v1/product/classify/delete", id);
}
export function updateclassify (data) {
  return http.put("/v1/product/classify/update", data);
}
